package com.vhans.db.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.vhans.core.domain.Correlation;
import com.vhans.db.model.vo.correlation.PurchasedInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 总体关联Mapper接口
 *
 * @author vhans
 * @date 2023-05-20
 */
@Repository
public interface CorrelationMapper extends BaseMapper<Correlation> {

    /**
     * 获取已购买产品的信息
     * @param userId 用户id
     * @return 已购买产品的信息
     */
    List<PurchasedInfo> getPurchasedInfo(@Param("userId") int userId);
}
